from django.urls import path
from .views import (
    SongListAPIView, SongDetailAPIView,
    PlaylistListAPIView, PlaylistDetailAPIView,
    PlayHistoryListAPIView
)

urlpatterns = [
    path('songs/', SongListAPIView.as_view()),
    path('songs/<int:pk>/', SongDetailAPIView.as_view()),
    path('playlists/', PlaylistListAPIView.as_view()),
    path('playlists/<int:pk>/', PlaylistDetailAPIView.as_view()),
    path('history/', PlayHistoryListAPIView.as_view()),
]
